export default{
    state:{
        fruits:[
            {name:"苹果",price:3.2,many:0},
            {name:"香蕉",price:3.5,many:0},
            {name:"橘子",price:2.2,many:0}
        ]
    },
    setStateMessage(str){
        this.state.message = str
    },
    reSetMany(){
        this.state.fruits.forEach(data => {
            data.many = 0
        })
    }
    
}